package com.ququ.syb.entrance.fegin;

import com.ququ.common.result.Result;
import com.ququ.common.result.ResultJson;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(name = "application")
public interface ApplicationFegin {

    @RequestMapping(value = "/key")
    Result<String> getApplicationKey(@RequestParam(value = "appcode") String appcode);

    @RequestMapping("/permission/controller")
    ResultJson checkApplicationControllerAccessPermission(@RequestParam(value = "controller") String controller,
                                                          @RequestParam(value = "appcode") String appcode);
}
